<template>
	<view class="flex-colume-start thirdResultPage">
		<view style="height: 10rpx;"></view>
		<view class="flex-row-center" style="background-color: white; position: relative;">
			<image src="/static/card.png" style="width: 640rpx; height: 521rpx;"></image>
			<view class="money">
				{{money}}
			</view>
		</view>
		<view class="flex-colume-start"
			style="margin-top: 30rpx; background-color: rgb(244, 244, 244); width: 640rpx; border-radius: 20rpx; padding: 40rpx; box-sizing: border-box;">
			<view style="font-size: 26rpx; width: 100%; text-align: left; margin-bottom: 20rpx;">
				申请时间：{{time}}
			</view>
			<view class="flex-row-start item1">
				<view class="title1">申请人：</view>
				<view class="desc1">{{form?form.name:''}}</view>
			</view>
			<view class="flex-row-start item1">
				<view class="title1">手机号：</view>
				<view class="desc1">{{form?form.phone:''}}</view>
			</view>
			<view class="flex-row-start item1">
				<view class="title1">申请银行：</view>
				<view class="desc1">{{form?form.bank:''}}</view>
			</view>
			<view class="flex-row-start item1">
				<view class="title1">证件信息：</view>
				<view class="desc1">{{form?form.idCard:''}}</view>
			</view>
		</view>
		<view class="btn1" style="margin-top: 80rpx;">提交申请 激活额度</view>
		
		<view class="flex-row-center" style="margin-top: 30rpx;">
			<image src="/static/zhongxin.png" style="width: 30rpx; height: 30rpx; margin-right: 6rpx;"></image>
			<view style="font-size: 24rpx; color: rgb(153, 153, 153);">个人信息加密保护中</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				formType: 0,
				form: undefined,
				money: '',
				time:''


			}
		},
		onLoad(e) {
			this.formType = e.formType
			this.form = JSON.parse(uni.getStorageSync('info'))
			if (e.formType == 0) {
				this.money = '52,000'
			}
			if (e.formType == 1) {
				this.money = this.getRandomIntInclusive(70, 80)+',000'
			}
			if (e.formType == 2) {
				this.money = this.getRandomIntInclusive(20, 35)+',000'
			}
			if (e.formType == 3) {
				this.money = this.getRandomIntInclusive(100, 130)+',000'
			}
			this.time = this.parseTime(new Date(),'{y}/{m}/{d}')

		},
		methods: {
			
			getRandomIntInclusive(min, max) {
			  min = Math.ceil(min);
			  max = Math.floor(max);
			  return Math.floor(Math.random() * (max - min + 1)) + min; //含两端点
			}

		}
	}
</script>
<style>
	page {
		background-color: white;
	}
</style>

<style lang="scss" scoped>
	.thirdResultPage {
		.input1 {
			width: 640rpx;
			height: 76rpx;
			border-radius: 10rpx;
			border: 1px solid rgb(128, 170, 198);
			padding: 0rpx 20rpx;
			font-size: 28rpx;
			box-sizing: border-box;
			text-align: center;
			color: rgb(153, 153, 153);
		}

		.money {
			background-color: rgba(46, 45, 41, 1);
			// background-color: red;
			position: absolute;
			right: 30rpx;
			width: 400rpx;
			top: 140rpx;
			height: 120rpx;
			text-align: right;
			color: rgb(240, 174, 0);
			font-size: 90rpx;
		}

		.item1 {
			width: 100%;
			align-items: flex-start;
			font-size: 30rpx;
			line-height: 50rpx;
			font-weight: 500;
			margin-bottom: 8rpx;
			margin-top: 8rpx;
			color: rgb(54, 54, 54);

			.title1 {
				width: 180rpx;

				text-align: left;
			}
		}
		
		.btn1{
			width: 650rpx;
			height: 84rpx;
			line-height: 84rpx;
			color: black;
			font-size: 30rpx;
			font-weight: 600;
			border-radius: 100rpx;
			background-color: rgb(236, 213, 0);
			text-align: center;
		}



	}
</style>